Traceback (most recent call last):


 "D:/PycharmProjects/BSGD/t.py", line 199, in <module>

test_execute_empty_data()


 "D:/PycharmProjects/BSGD/t.py", line 178, in test_execute_empty_data

model_fn=model_examples.LinearRegression)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\learning\federated_sgd.py", line 161, in build_federated_sgd_process

model_fn, client_sgd_avg, server_optimizer_fn)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\learning\framework\optimizer_utils.py", line 345, in build_model_delta_optimizer_process

@tff.federated_computation


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\api\computations.py", line 202, in federated_computation

return computation_wrapper_instances.federated_computation_wrapper(*args)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\computation_wrapper.py", line 404, in __call__

self._wrapper_fn)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\computation_wrapper.py", line 97, in _wrap

name=fn_name)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\computation_wrapper_instances.py", line 54, in _federated_computation_wrapper_fn

suggested_name=name))


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\federated_computation_utils.py", line 78, in zero_or_one_arg_fn_to_building_block

result = fn()


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\function_utils.py", line 463, in <lambda>

return lambda: fn()
# pylint: disable=unnecessary-lambda


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\learning\framework\optimizer_utils.py", line 349, in server_init_tff

@tff.tf_computation


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\api\computations.py", line 155, in tf_computation

return computation_wrapper_instances.tensorflow_wrapper(*args)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\computation_wrapper.py", line 404, in __call__

self._wrapper_fn)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\computation_wrapper.py", line 97, in _wrap

name=fn_name)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\computation_wrapper_instances.py", line 38, in _tf_wrapper_fn

target_fn, parameter_type, ctx_stack)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\tensorflow_serialization.py", line 94, in serialize_py_fn_as_tf_computation

result = target(*args)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\core\impl\function_utils.py", line 463, in <lambda>

return lambda: fn()
# pylint: disable=unnecessary-lambda


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\learning\framework\optimizer_utils.py", line 353, in _fn

stateful_model_broadcast_fn.initialize())


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\learning\framework\optimizer_utils.py", line 222, in server_init

_, optimizer_vars = _build_server_optimizer(model, optimizer)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\learning\framework\optimizer_utils.py", line 129, in _build_server_optimizer

apply_delta(delta=weights_delta)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\eager\function.py", line 864, in __call__

graph_function, args, kwargs = self._maybe_define_function(args, kwargs)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\eager\function.py", line 1176, in _maybe_define_function

arg_names=arg_names),


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\func_graph.py", line 448, in func_graph_from_py_func

func_outputs = python_func(*func_args, **func_kwargs)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_federated\python\learning\framework\optimizer_utils.py", line 118, in apply_delta

optimizer.apply_gradients(grads_and_vars, name='server_update')


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\keras\optimizer_v2\optimizer_v2.py", line 364, in apply_gradients

update_ops.append(update_grad_to_var(grad, var))


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\keras\optimizer_v2\optimizer_v2.py", line 352, in update_grad_to_var

update_op = self._resource_apply_dense(grad, var)


 "<user_home>\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\keras\optimizer_v2\gradient_descent.py", line 112, in _resource_apply_dense

var.handle, lr_t, grad, use_locking=self._use_locking)
AttributeError: 'RefVariable' object has no attribute 'handle'

Traceback (most recent call last):


 "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main

return _run_code(code, main_globals, None,


 "/usr/lib/python3.8/runpy.py", line 86, in _run_code

exec(code, run_globals)


 "/home/user/code/capa-pub/capa/main.py", line 690, in <module>

sys.exit(main())


 "/home/user/code/capa-pub/capa/main.py", line 485, in main

args = parser.parse_args(args=argv)


 "/usr/lib/python3.8/argparse.py", line 1780, in parse_args

args, argv = self.parse_known_args(args, namespace)


 "/usr/lib/python3.8/argparse.py", line 1812, in parse_known_args

namespace, args = self._parse_known_args(args, namespace)


 "/usr/lib/python3.8/argparse.py", line 2021, in _parse_known_args

stop_index = consume_positionals(start_index)


 "/usr/lib/python3.8/argparse.py", line 1977, in consume_positionals

take_action(action, args)


 "/usr/lib/python3.8/argparse.py", line 1870, in take_action

argument_values = self._get_values(action, argument_strings)


 "/usr/lib/python3.8/argparse.py", line 2401, in _get_values

value = self._get_value(action, arg_string)


 "/usr/lib/python3.8/argparse.py", line 2434, in _get_value

result = type_func(arg_string)


 "/home/user/code/capa-pub/capa/main.py", line 454, in <lambda>

type=lambda s: s.decode(sys.getfilesystemencoding()),
AttributeError: 'str' object has no attribute 'decode'
