Home
last modified time | relevance | path

Searched refs:is_resource (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/ops/
Dtraining_ops.cc25 template <bool is_resource>
51 template <bool is_sparse, bool is_resource>
54 ShapeHandle grad = ShapeOrHandleShape<is_resource>(c, grad_idx); in HandleGradAndIndicesInputs()
73 template <bool is_resource>
76 ShapeHandle s = ShapeOrHandleShape<is_resource>(c, 0); // var in ApplyGradientDescentShapeFn()
102 template <bool is_sparse, bool is_resource>
105 ShapeHandle s = ShapeOrHandleShape<is_resource>(c, 0); // var in ApplyProximalGradientDescentShapeFn()
109 TF_RETURN_IF_ERROR(HandleGradAndIndicesInputs<is_sparse, is_resource>( in ApplyProximalGradientDescentShapeFn()
167 template <bool is_sparse, bool is_resource>
170 ShapeHandle s = ShapeOrHandleShape<is_resource>(c, 0); // var in ApplyAdadeltaShapeFn()
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dtest_resource.py14 self.assertTrue(resources.is_resource(self.data, 'binary.file'))
17 self.assertFalse(resources.is_resource(self.data, 'not-a-file'))
21 self.assertFalse(resources.is_resource(self.data, 'subdirectory'))
63 self.assertTrue(resources.is_resource(package, 'B'))
69 self.assertFalse(resources.is_resource(package, 'D'))
75 self.assertFalse(resources.is_resource(package, 'Z'))
93 self.assertFalse(resources.is_resource(module, 'A'))
119 resources.is_resource(submodule, 'binary.file'))
123 resources.is_resource('ziptestdata.subdirectory', 'binary.file'))
143 self.assertFalse(resources.is_resource(
Dtest_abc.py316 def is_resource(self, *args, **kwargs): member in ResourceReader
317 return super().is_resource(*args, **kwargs)
337 self.ins.is_resource('dummy_file')
Dutil.py428 def is_resource(self, path_): member in create_package.Reader
/external/python/cpython3/Lib/importlib/
Dresources.py218 def is_resource(package: Package, name: str) -> bool: function
227 return reader.is_resource(name)
Dabc.py378 def is_resource(self, name): member in ResourceReader
D_bootstrap_external.py991 if not self.is_resource(resource):
996 def is_resource(self, name): member in FileLoader
/external/tensorflow/tensorflow/core/framework/
Dvariable.proto64 bool is_resource = 5; field
/external/tensorflow/tensorflow/python/saved_model/
Dload_v1_in_v2_test.py451 is_resource=full_proto.is_resource)
/external/tensorflow/tensorflow/python/ops/
Dresource_variable_ops.py726 var_def.is_resource = True
1666 if not variable_def.is_resource:
1990 if v.is_resource:
/external/python/cpython3/Lib/
Dzipimport.py751 def is_resource(self, name): member in _ZipImportResourceReader
/external/python/cpython3/Doc/library/
Dimportlib.rst529 .. abstractmethod:: is_resource(name)
539 acceptable to return names for which :meth:`is_resource` would
922 .. function:: is_resource(package, name)